<template>
  <div class="box">
    <div class="f1">
      <div class="f1_content">
        <div class="goHome" @click="goHome">
          <img src="@/assets/flow/首页.png" alt="" />返回主页
        </div>
        <ul>
          <li v-for="(item, index) in list" :key="item.num">
            <h6>
              <span>{{ item.num }} </span>{{ item.str }}
            </h6>
            <template
              v-if="
                item.num == '01' ||
                item.num == '02' ||
                item.num == '03' ||
                item.num == '04' ||
                item.num == '05'
              "
            >
              <img class="quan" src="@/assets/home/组75.png" alt="" />
              <img class="line" src="@/assets/home/组73.png" alt="" />
            </template>
            <template v-else>
              <template v-if="item.num == '06'">
                <img class="quan" src="@/assets/home/组75.png" alt="" />
                <!-- <img class="line" src="@/assets/home/组72.png" alt="" /> -->
              </template>
              <template v-else>
                <img class="quan" src="@/assets/home/组71-2.png" alt="" />
                <img
                  class="line"
                  v-show="index !== list.length - 1"
                  src="@/assets/home/组74.png"
                  alt=""
                />
              </template>
            </template>
          </li>
        </ul>
      </div>
    </div>
    <div class="f2">
      <div class="content">
        <img src="@/assets/flow/组92.png" alt="" />
        <h3>认证中</h3>
        <h6>
          请前往【用户中心】-->【我的订单】-->【商务信用管理】查看认证结果
        </h6>
        <h5 @click="goProject">前往查看</h5>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      list: [
        {
          num: "01",
          str: "基本信息",
        },
        {
          num: "02",
          str: "资质信息",
        },
        {
          num: "03",
          str: "财务信息",
        },
        {
          num: "04",
          str: "信用信息",
        },
        {
          num: "05",
          str: "授权信息采集",
        },
        {
          num: "06",
          str: "预览并提交",
        },
      ],
    };
  },
  mounted() {
    document.documentElement.scrollTop = 0;
  },
  methods: {
    goHome() {
      this.$router.push("/");
    },
    goProject() {
      localStorage.setItem("rowss", 2);
      this.$router.push("/myReport");
      // const a = document.createElement("a");
      // a.href = "https://www.digmh.cn/PersonalCenter?id=2-6";
      // a.target = "_blank";
      // a.click();

      // window.URL.revokeObjectURL(url);
    },
  },
};
</script>

<style lang="scss" scoped>
ul {
  list-style: none;
}
.box {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding-bottom: 80px;
  background: #f5f7fa;
  .f1 {
    width: 100%;
    height: 138px;
    background: #f0f1f7;
    .f1_content {
      position: relative;
      margin: 0 auto;
      width: 1200px;
      height: 100%;
      .goHome {
        display: flex;
        align-items: center;
        height: 25px;
        cursor: pointer;
        z-index: 9999;
        position: absolute;
        right: 10px;
        top: 10px;
        font-size: 16px;
        font-weight: 500;
        color: #616060;
        img {
          width: 24px;
          // height: 24px;
        }
      }
      ul {
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        li {
          h6 {
            font-size: 14px;
            font-weight: 400;
            color: #515151;
            margin-bottom: 5px;
            span {
              font-size: 22px;
              font-family: Britannic Bold;
              font-weight: 500;
              color: #000000;
            }
          }
          .quan {
            width: 24px;
            height: 24px;
          }
          .line {
            width: 123px;
            height: 3px;
          }
        }
      }
    }
  }
  .f2 {
    box-sizing: border-box;
    padding: 40px 80px;
    margin: 0 auto;
    width: 1200px;
    height: 750px;
    background-color: #fff;
    .content {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      padding: 30px 20px 50px 20px;
      margin: 0 auto;
      height: 100%;
      img {
        width: 340px;
        height: 160px;
      }
      h3 {
        font-size: 16px;
        color: #333;
        margin-bottom: 15px;
      }

      h6 {
        font-size: 16px;
        color: #333;
        font-weight: 400;
      }
      h5 {
        margin-top: 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 160px;
        height: 36px;
        background: #0a7be0;
        border-radius: 4px;
        font-size: 16px;
        font-weight: 300;
        color: #ffffff;
      }
    }
  }
}
</style>
